<html>
 <head>
  <link href="./leetcode-problem.css" rel="stylesheet" type="text/css">
 </head>
 <body>
  <div class="question_difficulty">
   难度：Easy
  </div>
  <div>
   <h1 class="question_title">
    175. Combine Two Tables
   </h1>
   <p>
    Table:
    <code>
     Person
    </code>
   </p>
   <pre>
+-------------+---------+
| Column Name | Type    |
+-------------+---------+
| PersonId    | int     |
| FirstName   | varchar |
| LastName    | varchar |
+-------------+---------+
PersonId is the primary key column for this table.
</pre>
   <p>
    Table:
    <code>
     Address
    </code>
   </p>
   <pre>
+-------------+---------+
| Column Name | Type    |
+-------------+---------+
| AddressId   | int     |
| PersonId    | int     |
| City        | varchar |
| State       | varchar |
+-------------+---------+
AddressId is the primary key column for this table.
</pre>
   <p>
    &nbsp;
   </p>
   <p>
    Write a SQL query for a report that provides the following information for each person in the Person table, regardless if there is an address for each of those people:
   </p>
   <pre>
FirstName, LastName, City, State
</pre>
  </div>
  <div>
   <h1 class="question_title">
    175. 组合两个表
   </h1>
   <p>
    表1:
    <code>
     Person
    </code>
   </p>
   <pre>+-------------+---------+
| 列名         | 类型     |
+-------------+---------+
| PersonId    | int     |
| FirstName   | varchar |
| LastName    | varchar |
+-------------+---------+
PersonId 是上表主键
</pre>
   <p>
    表2:
    <code>
     Address
    </code>
   </p>
   <pre>+-------------+---------+
| 列名         | 类型    |
+-------------+---------+
| AddressId   | int     |
| PersonId    | int     |
| City        | varchar |
| State       | varchar |
+-------------+---------+
AddressId 是上表主键
</pre>
   <p>
    &nbsp;
   </p>
   <p>
    编写一个 SQL 查询，满足条件：无论 person 是否有地址信息，都需要基于上述两表提供&nbsp;person 的以下信息：
   </p>
   <p>
    &nbsp;
   </p>
   <pre>FirstName, LastName, City, State
</pre>
  </div>
 </body>
</html>